import json

with open("data/students.json", mode="r", encoding="utf-8") as f:
    lines = [line.strip() for line in f.readlines()]

    for line in lines:
        # 将json字符串转换成json的对象
        jsonObj = json.loads(line)

        id = jsonObj["id"]
        name = jsonObj["name"]
        age = jsonObj["age"]
        clazz = jsonObj["clazz"]
        gender = jsonObj["gender"]

        print(id, name, age, gender, clazz)
